package io.finer.erp.jeecg.finance.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 付款表
 * @Author: jeecg-boot
 * @Date:   2021-03-22
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="fina_payment对象", description="付款表")
public class FinaPaymentPage implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**供应商*/
	@Excel(name = "供应商", width = 30)
    @ApiModelProperty(value = "供应商")
    private String supplierName;
	/**供应商id*/
    @ApiModelProperty(value = "供应商id")
    private String supplierId;
    /**期初欠款*/
    @Excel(name = "期初欠款", width = 15)
    @ApiModelProperty(value = "起初欠款")
    private BigDecimal totalOwed;
    /**货单金额*/
    @Excel(name = "货单金额", width = 15)
    @ApiModelProperty(value = "货单金额")
    private BigDecimal dues;
    /**已付金额*/
    @Excel(name = "已付金额", width = 15)
    @ApiModelProperty(value = "已付总额")
    private BigDecimal paids;
    /**折扣金额*/
    @Excel(name = "折扣金额", width = 15)
    @ApiModelProperty(value = "折扣金额")
    private java.lang.String discountSumPrice;
    /**应付余额*/
    @Excel(name = "应付余额", width = 15)
    @ApiModelProperty(value = "应付余额")
    private BigDecimal balance;
    /**已开票金额*/
    @Excel(name = "已开票金额", width = 15)
    @ApiModelProperty(value = "开票金额")
    private BigDecimal invoicePrice;
    /**期初未开票金额*/
    @Excel(name = "期初未开票金额", width = 15)
    @ApiModelProperty(value = "期初未开票")
    private java.math.BigDecimal cumulativeNoneInvoice;
    /**期末未开票金额*/
    @Excel(name = "期末未开票金额", width = 15)
    @ApiModelProperty(value = "未开票金额")
    private BigDecimal noneInvoicePrice;
	/**账单类型*/
    @ApiModelProperty(value = "账单类型")
    private String billType;
	/**金额*/
    @ApiModelProperty(value = "金额")
    private BigDecimal price;
    /**是否开票*/
    @ApiModelProperty(value = "是否开票")
    @Dict(dicCode = "isBill")
    private BigDecimal isBill;
    /**单据编号*/
    @ApiModelProperty(value = "单据编号")
    private java.lang.String code;


/*********************筛选条件******************************************************************/

    private String createTimeStart;//日期
    private String createTimeEnd;

    private BigDecimal receivablesStart;//货单金额
    private BigDecimal receivablesEnd;

    private BigDecimal receivedsStart;//已收金额
    private BigDecimal receivedsEnd;

    private BigDecimal discountSumPriceStart;//折扣金额
    private BigDecimal discountSumPriceEnd;

    private BigDecimal invoicePriceStart;//开票金额
    private BigDecimal invoicePriceEnd;
    
    
    
    /***************排序字段*********************/
	private String column;
	private String order;
}
